package com.haorui.lygyd.employeemanager.service;

import com.haorui.base.core.model.Search;
import com.haorui.base.core.service.BaseService;
import com.haorui.lygyd.employeemanager.entity.YuangongEntity;
import com.haorui.lygyd.employeemanager.repository.YuangongRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @support: 西安鑫正豪信息技术有限公司
 * @author: 系统生成
 * @version: 1.0
 * @Date: Wed Feb 27 00:26:58 CST 2019
 * @Description: 员工
 */
@Service
public class YuangongService extends BaseService<YuangongEntity, String> {
    private YuangongRepository yuangongRepository;

    public YuangongService(@Autowired YuangongRepository yuangongRepository) {
        super(yuangongRepository);
        this.yuangongRepository = yuangongRepository;
    }

    @Override
    protected Search<YuangongEntity> getSearch() {
        return new Search<YuangongEntity>(YuangongEntity.class);
    }
}
